package com.ms.teapuesto.model;

import javax.persistence.*;
import java.util.Date;
import java.util.Set;

/**
 * Created by RAZANERO on 26/08/14.
 */
@Entity
@Table(name = "TM_DRAWDATA",schema = "PUBLIC")
public class Programa {

    @Id
    @Column(precision = 5)
    private Long drawId;

    private String date;

    private Date fecha;

    @Transient
    private Set<Evento> eventos;


    public Long getDrawId() {
        return drawId;
    }

    public void setDrawId(Long drawId) {
        this.drawId = drawId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Set<Evento> getEventos() {
        return eventos;
    }

    public void setEventos(Set<Evento> eventos) {
        this.eventos = eventos;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    @Override
    public String toString() {
        return "Programa{" +
                "drawId=" + drawId +
                ", date='" + date + '\'' +
                ", fecha=" + fecha +
                ", eventos=" + eventos +
                '}';
    }
}
